<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>图书管理系统</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css" rel="stylesheet">
    <style>
        body {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .welcome-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 3rem;
            text-align: center;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            max-width: 500px;
        }
        .welcome-icon {
            font-size: 4rem;
            color: #0d6efd;
            margin-bottom: 1.5rem;
        }
        .btn-custom {
            margin: 0.5rem;
            padding: 0.75rem 2rem;
            border-radius: 10px;
            font-weight: 600;
        }
    </style>
</head>
<body>
    <div class="welcome-card">
        <div class="welcome-icon">
            <i class="bi bi-book"></i>
        </div>
        <h1 class="mb-3">欢迎使用图书管理系统</h1>
        <p class="text-muted mb-4">请选择您要访问的功能</p>
        
        <div class="d-grid gap-2">
            <a href="login.html" class="btn btn-primary btn-custom">
                <i class="bi bi-box-arrow-in-right me-2"></i>用户登录
            </a>
            <a href="dashboard.html" class="btn btn-success btn-custom">
                <i class="bi bi-speedometer2 me-2"></i>管理面板
            </a>
            <a href="system.html" class="btn btn-warning btn-custom">
                <i class="bi bi-gear-fill me-2"></i>系统配置
            </a>
        </div>
        
        <div class="mt-4">
            <small class="text-muted">
                <i class="bi bi-info-circle me-1"></i>
                如需帮助，请联系系统管理员
            </small>
        </div>
    </div>

    <script src="config.js"></script>
    <script>
        // 检查维护模式
        document.addEventListener('DOMContentLoaded', async () => {
            if (window.globalConfig) {
                await window.globalConfig.checkMaintenanceMode();
            }
        });
    </script>
</body>
</html>